from utilities import *

from __main__ import game
from toee import *

def san_dialog( attachee, triggerer ):
	triggerer.begin_dialog( attachee, 1 )
	return SKIP_DEFAULT

def set_room_flag( attachee, triggerer ):
	game.global_flags[997] = 1
	game.timeevent_add( room_no_longer_available, (), 86390000 )
	game.sleep_status_update()
	return RUN_DEFAULT
	
def room_no_longer_available():
	game.global_flags[997] = 0
	game.sleep_status_update()
	return RUN_DEFAULT